<#macro head_new>
<!-- datatables -->
<link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/datatables/new/datatables.min.css?v=3553060703">
</#macro>

<#macro foot_new>
<!-- datatables -->
<script type="text/javascript" src="${request.contextPath}/assets/datatables/new/datatables.min.js?v=3553060703"></script>
<!-- 其他 -->
<script type="text/javascript" src="${request.contextPath}/assets/alone/js/datatable.js?v=3553060703"></script>
<script type="text/javascript" src="${request.contextPath}/assets/alone/js/winning-table.js?v=3553060703"></script>
</#macro>

<#macro head>
<!-- datatables -->
<link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/datatables/css/dataTables.bootstrap.min.css?v=3553060703">
</#macro>
<#macro foot>
<!-- datatables -->
<script type="text/javascript" src="${request.contextPath}/assets/datatables/js/jquery.dataTables.min.js?v=3553060703"></script>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/js/dataTables.bootstrap.min.js?v=3553060703"></script>
<!-- 其他 -->
<script type="text/javascript" src="${request.contextPath}/assets/alone/js/datatable.js?v=3553060703"></script>
<script type="text/javascript" src="${request.contextPath}/assets/alone/js/winning-table.js?v=3553060703"></script>
</#macro>

<!-- autoFill(自动填充) 扩展 -->
<#macro autoFill_head>
<link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/datatables/extensions/autoFill/autoFill.bootstrap.min.css?v=3553060703">
</#macro>
<#macro autoFill_foot>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/autoFill/dataTables.autoFill.min.js?v=3553060703"></script>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/autoFill/autoFill.bootstrap.min.js?v=3553060703"></script>
</#macro>

<!-- buttons 扩展 -->
<#macro buttons_head>
<link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/datatables/extensions/buttons/buttons.bootstrap.min.css?v=3553060703">
</#macro>
<#macro buttons_foot>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/buttons/dataTables.buttons.min.js?v=3553060703"></script>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/buttons/buttons.bootstrap.min.js?v=3553060703"></script>
<!-- 列筛选 -->
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/buttons/buttons.colVis.min.js?v=3553060703"></script>
<!-- 打印 -->
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/buttons/buttons.print.min.js?v=3553060703"></script>
<!-- html5导出所需文件 -->
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/buttons/jszip.min.js?v=3553060703"></script>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/buttons/pdfmake.min.js?v=3553060703"></script>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/buttons/vfs_fonts.js?v=3553060703"></script>
<!-- 导出 -->
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/buttons/buttons.html5.min.js?v=3553060703"></script>
<#--<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/buttons/buttons.flash.min.js?v=3553060703"></script>-->
</#macro>

<!-- colReorder(拖动列) 扩展 -->
<#macro colReorder_head>
<link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/datatables/extensions/colReorder/colReorder.bootstrap.min.css?v=3553060703">
</#macro>
<#macro colReorder_foot>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/colReorder/dataTables.colReorder.min.js?v=3553060703"></script>
</#macro>

<!-- fixedColumns(固定列) 扩展 -->
<#macro fixedColumns_head>
<link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/datatables/extensions/fixedColumns/fixedColumns.bootstrap.min.css?v=3553060703">
</#macro>
<#macro fixedColumns_foot>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/fixedColumns/dataTables.fixedColumns.min.js?v=3553060703"></script>
</#macro>

<!-- fixedHeader(固定头) 扩展 -->
<#macro fixedHeader_head>
<link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/datatables/extensions/fixedHeader/fixedHeader.bootstrap.min.css?v=3553060703">
</#macro>
<#macro fixedHeader_foot>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/fixedHeader/dataTables.fixedHeader.min.js?v=3553060703"></script>
</#macro>

<!-- keyTable(点击显示单元格边框) 扩展 -->
<#macro keyTable_head>
<link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/datatables/extensions/keyTable/keyTable.bootstrap.min.css?v=3553060703">
</#macro>
<#macro keyTable_foot>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/keyTable/dataTables.keyTable.min.js?v=3553060703"></script>
</#macro>

<!-- responsive(显示详细信息) 扩展 -->
<#macro responsive_head>
<link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/datatables/extensions/responsive/responsive.bootstrap.min.css?v=3553060703">
</#macro>
<#macro responsive_foot>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/responsive/dataTables.responsive.min.js?v=3553060703"></script>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/responsive/responsive.bootstrap.min.js?v=3553060703"></script>
</#macro>

<!-- rowReorder(排序) 扩展 -->
<#macro rowReorder_head>
<link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/datatables/extensions/rowReorder/rowReorder.bootstrap.min.css?v=3553060703">
</#macro>
<#macro rowReorder_foot>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/rowReorder/dataTables.rowReorder.min.js?v=3553060703"></script>
</#macro>

<!-- scroller(滚动) 扩展 -->
<#macro scroller_head>
<link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/datatables/extensions/scroller/scroller.bootstrap.min.css?v=3553060703">
</#macro>
<#macro scroller_foot>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/scroller/dataTables.scroller.min.js?v=3553060703"></script>
</#macro>

<!-- select(选择) 扩展 -->
<#macro select_head>
<link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/datatables/extensions/select/select.bootstrap.min.css?v=3553060703">
</#macro>
<#macro select_foot>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/select/dataTables.select.min.js?v=3553060703"></script>
</#macro>

<!-- edit 扩展 -->
<#macro editor_head>
<link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/datatables/extensions/editor/editor.bootstrap.min.css?v=3553060703">
</#macro>
<#macro editor_foot>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/editor/dataTables.editor.min.js?v=3553060703"></script>
<script type="text/javascript" src="${request.contextPath}/assets/datatables/extensions/editor/editor.bootstrap.min.js?v=3553060703"></script>
</#macro>


<#macro commonTable id="" minWidth="100%" width="100%" maxWidth="100%" showFoot="false" showBorder="false" colspanNum=1 thNum=1>
<div class="table-responsive">
    <table winning-table id="${id}" class="table <#if showBorder == "true">table-striped table-bordered</#if>" cellspacing="0"
           width="${width}"   style="min-width:${minWidth};max-width:${maxWidth} !important;">
        <thead>
        </thead>
        <#if showFoot == "true">
            <tfoot>
            <tr>
                <#if colspanNum != 0>
                    <th colspan="${colspanNum}" style="text-align:center">合计:</th>
                </#if>
                <#list 1..thNum as i>
                    <th></th>
                </#list>
            </tr>
            </tfoot>
        </#if>
        <tbody>
        </tbody>
    </table>
</div>
</#macro>
